String.prototype.format = String.prototype.f = function()
{
	var formatString = this;
	var argumentsLength = arguments.length;
	
	while (argumentsLength--)
	{
		formatString = formatString.replace(new RegExp('\\{' + argumentsLength + '\\}', 'gm'), arguments[argumentsLength]);
	}
	
	return formatString;
};